layui.use(['layer', 'form', 'admin', 'laydate', 'ax', 'formSelects','upload'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;
    
    getDays($);
    function getDays(jq){
		jq.ajax({
	        url: Feng.ctxPath + "/modular/activity_apply/detailed",
	        type:"post",
	        success:function(data){
	        	if(data != null){
	        		if(data.content.count != null){
	        			$("#totalSl").text(data.content.count.totalSl);
	        			$("#daySl").text(data.content.count.daySl);
	        			$("#totalCount").text(data.content.count.totalCount);
	        			$("#dayCount").text(data.content.count.dayCount);
	        		}
	        		var sj =data.content.countVo;
	        		if(data.content.countVo.length > 0){
	        			var str='';
	        			for(var j=0;j<sj.length;j++){
	        				str +='<tr><td><span class="first">'+sj[j].division+'</td>';
	        				str +='<td><span class="first">'+sj[j].totalSl+'</td>';
	        				str +='<td><span class="first">'+sj[j].daySl+'</td>';
	        				str +='<td><span class="first">'+sj[j].totalCount+'</td>';
	        				str +='<td><span class="first">'+sj[j].dayCount+'</td>';
	        				str +='</tr>';
	        			}
	        			$("#tabs").append(str);
	        		}
	        	}
	        }
	        	
	    });
	}
    
});